﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace APPFrameworkStudy.Domain.Mapping
{
    public class OrderMapping : BaseDomainMapping<Order>
    {
        public override void Init()
        {
            this.ToTable("Orders");
            this.HasKey(l => l.ID);
            this.Property(l => l.Number).HasMaxLength(50).IsRequired();
        }
    }
}
